<?php
/**
 * @author Anh Nguyen
 * @copyright 2012
 */
 
 error_reporting(E_ALL & ~E_NOTICE);
 
 define('APP' , true);
 define('SITE_PATH' , realpath(dirname(__FILE__)));
 define('DS' , DIRECTORY_SEPARATOR);
 define('CORE_PATH' , SITE_PATH . DS . 'cores');
 define('MODULE_PATH' , SITE_PATH . DS . 'modules');
 define('LIB_PATH' , SITE_PATH . DS . 'libraries');
 define('HELP_PATH' , SITE_PATH . DS . 'helpers');
 
 $base_url = 'http://' . $_SERVER['HTTP_HOST'] . str_replace('index.php','', $_SERVER['SCRIPT_NAME']);
 define('BASE_URL', $base_url);
 require_once SITE_PATH . DS . 'config.php';
 require_once CORE_PATH . DS . 'core.php';
 
 Core::init($config);
?>